<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ taglib uri="/WEB-INF/tlds/att.tld" prefix="att"%>
<html>

<head>
<meta name="decorator" content="moduleView" />
<link rel="stylesheet" href="${staticPath}/lib/ztree/3.5/css/zTreeStyle/zTreeStyle.css" type="text/css">
<script type="text/javascript" src="${staticPath}/js/decimalinput.js"></script>
<script type="text/javascript" src="${staticPath}/js/jquery-dialog.js"></script>
<script type="text/javascript" src="${staticPath}/lib/ztree/3.5/js/jquery.ztree.all-3.5.js"></script>
<script type="text/javascript" src="${staticPath}/js/jQuery.FillOptions.js"></script>
<script type="text/javascript" src="${staticPath}/js/negotiation.js"></script>
<script type="text/javascript" src="${staticPath}/js/selectBerth.js"></script>
<link href="${staticPath}/lib/chosen/1.1.0/chosen.min.css" rel="stylesheet" type="text/css">
<script src="${staticPath}/lib/chosen/1.1.0/chosen.jquery.js" type="text/javascript"></script>
<script src="${staticPath}/js/ossp-jquery-chosen.js" type="text/javascript"></script>
<script type="text/javascript">

	var negAssbaseitemsNum = '${fn:length(assrecords.negAssbaseitems)}';
	var negAssitemsNum = '${fn:length(assrecords.negAssitems)}';
	var num = '${fn:length(assrecords.negAssbrands )}';
	var contextpath='${contextPath}';
	var	assBrandList = Array();
	for (var i = 0; i < num; i++) {
		assBrandList.push(i);
	}

	$(function(){
		loadItems();	//页面加载扣款项下拉列表
	});
	function getUrl(tag, url) {
		$('#contractBrand').attr("src", url);
	}
	function btn_postpone_onClick() {
		$("#myModal").load('${contextPath}/${associated.versionUrl}${associated.mainId}/${associated.versionId}/${associated.assistId}/getMainVersion?contractAttribute=40&navId=${navId}',function() {
				$("#myModal").modal("show");
		});
	}
	function btn_onClick() {
		$("#myModal")
				.load(
						'${contextPath}/${associated.versionUrl}${associated.mainId}/${associated.versionId}/${associated.assistId}/getMainVersion?contractAttribute=70&navId=${navId}',
						function() {
							$("#myModal").modal("show");
						});
	}
	function getUrlVersionFrame(url) {
		$("#versionFrame").attr("src", url);
	}
</script>

<style type="text/css">
#modalAssbaseitems .modal-dialog {
	width: 60%;
}
#modalAssitems .modal-dialog {
	width: 60%;
}
#modalBrand .modal-dialog {
	width: 60%;
}
#supplierModal .modal-dialog {
	width: 70%;
}

.texthidden {
	width: 190px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
</style>
</head>
<body>
	<div class="Report_f">
		<div class="Report_f_1">
			<div class="Report_f_title_1">广告
			<c:if test="${assinfo.isModifyContract =='1'}">变更</c:if>
			<c:if test="${assinfo.isModifyContract !='1'}">
				<ossp:value dictType="CONTRATC_ATTRIBUTE" key="${assinfo.negotiationType}"></ossp:value>
			</c:if>
			合同信息</div>
			<input type="hidden" id='contract_type' value="associated">
			<ul class="nav nav-tabs Report_f_title_2" id="myTab">
				<li class="active"><a href="#home" data-toggle="tab">合同基本信息</a></li>
				<li><a href="#contractSupplier_tab" data-toggle="tab" onclick="">供应商基本信息</a></li>
				<li><a href="#contract_hist"  data-toggle="tab" onclick="getUrlVersionFrame('${contextPath}/biz/contract/assrecord/${assinfo.id }/getVersionList?version=${assrecords.versionNo }')" >洽谈记录</a></li>
				<input type="hidden" value="${assinfo.contractType }" name="assinfo.contractType" id="contractType"/>
			</ul>
			
			<input type="hidden" value="view" id="flag" />
			<input type="hidden" value="${assinfo.shopId }" name="assinfo.shopId" id="brand_No"> 
			<input id="storeId" value="${assinfo.storeId}" type="hidden"/> 
			<div class="tab-content Report_f_title_3">
				<div class="tab-pane active" id="home">
					<div class="Report_f_title_4">

						<input id="contractArea" type="hidden" /> 
						<input id="salesVolume"	type="hidden" /> <input id="benefit" type="hidden" /> 
						<input id="areaCoefficient" type="hidden" />
						<div style="display: none">
							<select id="taxRateCode_select"></select>
						</div>
						<div class="f_2">
							<div class="form-group col-sm-5">
								<label for="inputtext3" class="col-sm-5	 f_4">管理区域：</label>
								<div class="col-sm-5 f_6">${assinfo.area }</div>
							</div>
							<div class="form-group col-sm-7">
								<label for="inputtext3" class="col-sm-5 f_4">签约门店：</label>
								<div class="col-sm-7">${assinfo.store }</div>
							</div>
						</div>

						<div class="f_2">
							<div class="form-group col-sm-5">
								<label for="inputtext3" class="col-sm-5	 f_4">签约楼层：</label>
								<div class="col-sm-5 f_6">${assinfo.floor }</div>
							</div>
							<div class="form-group col-sm-7">
								<label for="inputtext3" class="col-sm-5 f_4">签约商铺：</label>
								<div class="col-sm-7">
									<c:forEach items="${assrecords.negAssshopsList }" var="assshopEntity" varStatus="i">
										${assshopEntity.shopId }
										<c:if test="${fn:length(assrecords.negAssshopsList) != i.count}">
											,
										</c:if>
									</c:forEach>
								</div>
							</div>
						</div>

						<div class="f_2">
							<div class="form-group col-sm-5">
								<label for="inputtext3" class="col-sm-5	 f_4">合同起始日期：</label>
								<div class="col-sm-5 f_6">
									<fmt:formatDate value="${assrecords.startDate }" type="both"
										pattern="yyyy-MM-dd" />
								</div>
							</div>
							<div class="form-group col-sm-7">
								<label for="inputtext3" class="col-sm-5 f_4">合同终止日期：</label>
								<div class="col-sm-7">
									<fmt:formatDate value="${assrecords.endDate }" type="both"
										pattern="yyyy-MM-dd" />
								</div>
							</div>
						</div>
						<div class="f_2">
							<div class="form-group col-sm-5">
								<label for="recieveStatus_lab" class="col-sm-5 f_4">文本开始日期:</label>
								<div class="col-sm-6">
										<fmt:formatDate value="${assrecords.textStartDate}" pattern="yyyy-MM-dd"/> 
								</div>
							</div>
							<div class="form-group col-sm-7">
								<label for="inputtext3" class="col-sm-5	 control-label f_4">文本结束日期:</label>
								<div class="col-sm-7 f_6">
									<fmt:formatDate value="${assrecords.textEndDate}" pattern="yyyy-MM-dd"/> 
								</div>
							</div>
						</div>
						<div class="f_2">
							<div class="form-group col-sm-5">
								<label for="inputtext3" class="col-sm-5	 f_4">属性：</label>
								<div class="col-sm-5 f_6">
									<ossp:value dictType="CONTRATC_ATTRIBUTE" key="${assrecords.assinfo.negotiationType}"></ossp:value>
								</div>
							</div>
							<div class="form-group col-sm-7">
								<label for="inputtext3" class="col-sm-5	 f_4">变更合同：</label>
								<div class="col-sm-5 f_6">
								<ossp:value dictType="YESORNO" key="${assinfo.isModifyContract}"></ossp:value>
								</div>
							</div>
						</div>
						<div class="f_2">
							<div class="form-group col-sm-5">
								<label for="inputtext3" class="col-sm-5	 f_4">洽谈号：</label>
								<div class="col-sm-5 f_6">${assrecords.assinfo.number }</div>
							</div>
							<div class="form-group col-sm-7">
								<label for="inputtext3" class="col-sm-5	 f_4">原合同：</label>
								<div class="col-sm-5 f_6">
									<a href="${contextPath}/biz/contract/advertassociated/${assrecords.assinfo.contractId }/view?navId=${navId}" target=_brank>${assrecords.assinfo.contractNo }</a>
								</div>
							</div>
						</div>
						<c:if test="${assrecords.assinfo.isModifyContract != '' }">
							<div class="f_2">
								<div class="form-group col-sm-5">
									<label for="inputtext3" class="col-sm-5	 f_4">变更后生效日期：</label>
									<div class="col-sm-5 f_6">
										<fmt:formatDate value="${assrecords.effectDate }" type="both"
											pattern="yyyy-MM-dd" />
									</div>
								</div>
								<div class="form-group col-sm-7">
								</div>
							</div>
						</c:if>
						<div class="f_2">
							<div class="form-group col-sm-5">
								<label for="inputtext3" class="col-sm-5	 f_4">主合同号：</label>
								<div class="col-sm-5 f_6">${assrecords.assinfo.mainContractId }</div>
							</div>
						</div>
						<div class="f_2">
							<h4>
								合同品牌信息 
							</h4>
							
							<table class="table table-bordered" id="negAssBrands">
									<tr class="text-center">
										<td class="text-center" style="width: 16%">品牌中文名称</td>
										<td class="text-center" style="width: 16%">品牌英文名称</td>
										<td class="text-center" style="width: 16%">招商分类</td>
										<td class="text-center" style="width: 16%">品牌责任人</td>
										<td class="text-center" style="width: 16%">商铺</td>
										<td class="text-center" style="width: 16%">操作</td>
										<td class="text-center" style="display: none;">hiddeValue</td>
									</tr>
									<tbody id="assBrandTbody">
										<c:forEach items="${assrecords.negAssbrands }" var="negAssbrands" varStatus="i">
											<tr>
												<td class="text-center" ><label id='brandCname_label${i.index }'>${negAssbrands.brandCname }</label></td>
												<td class="text-center" ><label id='inviteCate_label${i.index }'>${negAssbrands.brandename }</label></td>
												<td class="text-center" ><label id='mainBrands_label${i.index }'>${negAssbrands.inviteCateName }</label></td>
												<td class="text-center" ><label id='brandInviteHead_label${i.index }'>${negAssbrands.brandInviteHead }</label></td>
												<td class="text-center" ><label id='shop_label${i.index }'>
													<c:forEach items="${negAssbrands.negAsshsb }" var="negAsshsb" varStatus="j">
														${negAsshsb.negAssshop.shopId}	
														<c:if test="${fn:length(negAssbrands.negAsshsb) != j.count }">,</c:if>
													</c:forEach>	
												</label></td>
												<td class="text-center"><a href="javascript:void(0)" onclick="showModalBrand(this, this.parentElement.parentElement.rowIndex,${i.index})">查看</a></td>
												<td class="text-center" style="display: none;">
													<input type='hidden' id='brandId${i.index }' name='negAssbrands[${i.index }].brandId' value='${negAssbrands.brandId }' />
														<input type='hidden' id='inviteCate${i.index }' name='negAssbrands[${i.index }].inviteCate' value='${negAssbrands.inviteCate }' />
													    <input type='hidden' id='memberRateType${i.index }' name='negAssbrands[${i.index }].memberRateType' value='${negAssbrands.memberRateType }' />
													    <input type='hidden' id='gcardDiscount${i.index }' name='negAssbrands[${i.index }].gcardDiscount' value='${negAssbrands.gcardDiscount }' />
													    <input type='hidden' id='gcardDiscount2${i.index }' name='negAssbrands[${i.index }].gcardDiscount2' value='${negAssbrands.gcardDiscount2 }' />
													    <input type='hidden' id='ocardDiscount${i.index }' name='negAssbrands[${i.index }].ocardDiscount' value='${negAssbrands.ocardDiscount }' />
													    <input type='hidden' id='ocardDiscount2${i.index }' name='negAssbrands[${i.index }].ocardDiscount2' value='${negAssbrands.ocardDiscount2 }' />
													    <input type='hidden' id='mainBarnd${i.index }' name='negAssbrands[${i.index }].mainBrands' value='${negAssbrands.mainBrands }' />
													    <input type='hidden' id='brandNo${i.index }' name='negAssbrands[${i.index }].brandNo' value='"+brandNo+"' />
													    <input type='hidden' id='brandCname${i.index }' name='negAssbrands[${i.index }].brandCname' value='${negAssbrands.brandCname }' />
													    <input type='hidden' id='brandename${i.index }' name='negAssbrands[${i.index }].brandename' value='${negAssbrands.brandename }' />
													    <input type='hidden' id='brandAttribute${i.index }' name='negAssbrands[${i.index }].brandAttribute' value='${negAssbrands.brandAttribute }' />
													    <input type='hidden' id='brandLevel${i.index }' name='negAssbrands[${i.index }].brandLevel' value='"${negAssbrands.brandLevel }' />
													    <input type='hidden' id='commodityCate${i.index }' name='negAssbrands[${i.index }].commodityCate' value='${negAssbrands.commodityCate }' />
													    <input type='hidden' id='shopNames${i.index }' name='negAssbrands[${i.index }].shopNames' value='<c:forEach items="${negAssbrands.negAsshsb }" var="negAsshsb" varStatus="j">${negAsshsb.negAssshop.shop }<c:if test="${fn:length(negAssbrands.negAsshsb) != j.count }">,</c:if></c:forEach>' />
													    <input type='hidden' id='assShopIds${i.index }' name='negAssbrands[${i.index }].shopIds' value='<c:forEach items="${negAssbrands.negAsshsb }" var="negAsshsb" varStatus="j">${negAsshsb.negAssshop.shopId }<c:if test="${fn:length(negAssbrands.negAsshsb) != j.count }">,</c:if></c:forEach>' />
													    <input type='hidden' id='brandInviteHead${i.index }' name='negAssbrands[${i.index }].brandInviteHead' value='${negAssbrands.brandInviteHead }' />
													    <input type='hidden' id='iszs${i.index }' name='negAssbrands[${i.index }].iszs' value='${negAssbrands.iszs }' />
												</td>
											</tr>
										</c:forEach>
									</tbody>
							</table>
						</div>
							
							<div class="f_2">
								<h4>
									合同条款 
								</h4>
								<table class="table table-bordered" id="negAssitems">
										<tr class="text-center">
											<td class="text-center" style="width: 10%">扣款项代码</td>
											<td class="text-center" style="width: 10%">扣款项</td>
											<td class="text-center" style="width: 10%">金额/比例</td>
											<td class="text-center" style="width: 10%">开始日期</td>
											<td class="text-center" style="width: 10%">结束日期</td>
											<td class="text-center" style="width: 10%">扣款时效类型</td>
											<td class="text-center" style="width: 10%">计算基数</td>
											<td class="text-center" style="width: 10%">税率</td>
											<td class="text-center" style="width: 10%">操作</td>
											<td class="text-center" style="display: none;">hiddeValue</td>
										</tr>
										<tbody id="assitemsTbody">
										<c:forEach items="${assrecords.negAssitems }" var="assitems" varStatus="j">
											<tr>
												<td class="text-center"><label id='deductCode_lab${j.index }'>${assitems.deductCode }</label></td>
												<td class="text-center"><label id='deductItem_lab${j.index }'>${assitems.deductItem }</label></td>
												<td class="text-center"><label id="amount_lab${j.index }"><fmt:formatNumber value="${assitems.amount }" pattern="#0.00#"/><c:if test="${fn:startsWith(assitems.deductCode, 'A')}">%</c:if></label></td>
												<td class="text-center"><label id='startDate_lab${j.index }'><fmt:formatDate value="${assitems.startDate }" pattern="yyyy-MM-dd"/></label></td>
												<td class="text-center"><label id='endDate_lab${j.index }'><fmt:formatDate value="${assitems.endDate }" pattern="yyyy-MM-dd"/></label></td>
												<td class="text-center"><label id='deductCate_lab${j.index }'><ossp:value dictType="DEFEND_SYTLE" key="${assitems.validType }"></ossp:value></label></td>
												<td class="text-center"><label id='countBase_lab${j.index }'><ossp:value dictType="COMPUTE_BASE" key="${assitems.countBase}"></ossp:value></label></td>
												<td class="text-center"><label id='taxRate_lab${j.index }'>${assitems.taxRateName}</label></td>
												<td class="text-center"><a href="javascript:void(0)" onclick="showModalAssitems(this.parentElement.parentElement.rowIndex, ${j.index })">查看</a></td>
												<td class="text-center" style="display: none;">
													<input type="hidden" id='deductCode${j.index }' name="negAssitems[${j.index }].deductCode" value="${assitems.deductCode }"></input> 
												    <input type="hidden" id='assItemsStartDate${j.index }' name="negAssitems[${j.index }].startDate" value="<fmt:formatDate value="${assitems.startDate }" type="both" pattern="yyyy-MM-dd" />"></input>
												    <input type="hidden" id='assItemsEndDate${j.index }' name="negAssitems[${j.index }].endDate" value="<fmt:formatDate value="${assitems.endDate }" type="both" pattern="yyyy-MM-dd" />"></input>
												    <input type="hidden" id='assItemsValidType${j.index }' name="negAssitems[${j.index }].validType" value="${assitems.validType }"></input>
												    <input type="hidden" id='assItemsCountBase${j.index }' name="negAssitems[${j.index }].countBase" value="${assitems.countBase }"></input>
												    <input type="hidden" id='assItemsDeductType${j.index }' name="negAssitems[${j.index }].deductType" value="${assitems.deductType }"></input>
												    <input type="hidden" id='assItemsTaxRate${j.index }' name="negAssitems[${j.index }].taxRate" value="${assitems.taxRate }"></input>
												     <input type='hidden' id='deductItem${j.index }' name='negAssitems[${j.index }].deductItem' value="${assitems.deductItem }"></input>
												     <input type='hidden' id='deductCate${j.index }' name='negAssitems[${j.index }].deductCate' value="${assitems.deductCate }"></input>
												     <input type='hidden' id='amount${j.index }' name='negAssitems[${j.index }].amount' value="${assitems.amount }"></input>
												     <input type='hidden' id='taxRateCode_items${j.index }' name='negAssitems[${j.index }].taxRate' value="${assitems.taxRate }"></input>
												    <input type="hidden" id='assItemsRemarks${j.index }' name="negAssitems[${j.index }].remarks" value="${assitems.remarks }"></input>
												</td>
											</tr>
										</c:forEach>
								</table>
							</div>
							
							<div class="f_2">
								<h4>
									合同条件--特殊条款信息
								</h4>
								<table class="table table-striped table-hover o-l-table"
									id="codeTable">
									<thead>
										<tr>
											<th>特殊条款<span style="color: red;" style="width: 100px">*</span></th>
											<th>条件</th>
											<th style="width: 120px">金额</th>
											<th style="width: 300px">描述</th>
										</tr>
									</thead>
									<tbody>
										<c:forEach items="${assrecords.negAssTempItemCodeList}" var="itemCode" varStatus="var">
											<tr>
												<td class="o-l-tab-ckb">
													<input type="hidden" id="assTempItemCodeList${var.index}.id" name="negAssTempItemCodeList[${var.index}].id" value="${itemCode.id}"> 
													<select data_def="${itemCode.itemCode}" data_index="${var.index}" onchange="changeItem('hidden_contact',this,this.options[this.options.selectedIndex].value,this.options[this.options.selectedIndex].text)" class="f_5 required" id="assTempItemCodeList${var.index}.itemCode" name="negAssTempItemCodeList[${var.index}].itemCode" disabled="disabled">
												</select>
												</td>
												<td class="o-l-tab-ckb">
													<select spt_Num="${itemCode.items.dicType}" data_def="${itemCode.itemCode}" data_index="${var.index}" class="f_5 required" id="assTempItemCodeList${var.index}.conditions" name="negAssTempItemCodeList[${var.index}].itemValue" disabled="disabled"></select>
												</td>
												<td class="o-l-tab-ckb">
													<input class="f_5" value="${itemCode.amount}" type="text" id="assTempItemCodeList${var.index}.amount" name="negAssTempItemCodeList[${var.index}].amount" class="f_5" disabled="disabled"></td>
												<td class="o-l-tab-ckb">
													<input type="text" value="${itemCode.remark}" id="assTempItemCodeList${var.index}.remark" name="negAssTempItemCodeList[${var.index}].remark" class="f_5 required" disabled="disabled"></td>
												<td class="o-l-tab-ckb">
											</tr>
										</c:forEach>
										<!-- 隐藏行，用于新增明细start -->
										<tr style="display: none" id="hidden_contact">
											<td class="o-l-tab-ckb">
												<select data_index="" onchange="changeItem('hidden_contact',this,this.options[this.options.selectedIndex].value,this.options[this.options.selectedIndex].text)" class="f_5 required" id=".itemCode" name=".itemCode"></select></td>
											<td class="o-l-tab-ckb">
												<select data_index="" class="f_5 required" id=".conditions" name=".itemValue"></select></td>
											<td class="o-l-tab-ckb">
												<input class="f_5" type="text" id=".amount" name=".amount"></td>
											<td class="o-l-tab-ckb">
												<input class="f_5 required" type="text" id=".remark" name=".remark"></td>
											<td>
												<input type="button" onclick="delete_tr(this,'#delContactId')" value="删除" class="btn btn-default btn-sm"></td>
										</tr>
										<!-- 隐藏行，用于新增明细end -->
									</tbody>
								</table>
							</div>
								<div class="f_2">
								<div class="form-group col-sm-6">
											<label for="inputtext3" class="col-sm-3 control-label f_4">备注:</label>
											<div class="col-sm-5 f_7">
												<textarea rows="5" cols="130" name="comments" readonly="readonly" id="otherItems" class="form">${assrecords.comments}</textarea>
											</div>
									</div>
						</div>
					</div>
				</div>
	
				<!-- =========================供应商信息=========================== -->
				<div class="tab-pane"  id="contractSupplier_tab" >
					<div class="f_2">
						<div class="form-group col-sm-6 ">
							<label for="inputtext3" class="col-sm-4	 f_4">合同供应商:</label>
							<div class="col-sm-6">
							<input type="hidden" id="supplierNo" value="${assinfo.supplierNo}"/>
							${assinfo.supplierName}
							</div>
						</div>
					</div>
				</div>
				<div class="tab-pane" id="contract_hist">
					<iframe id="versionFrame" name="versionFrame" scrolling="no"
						frameborder="no" width="100%"></iframe>
				</div>
				<div class="o-l-action">
					<a class="btn btn-info btn_3 btn_right" role="button" href="${contextPath}/biz/contract/assrecord/getList?navId=${navId}">返&nbsp回</a>
					
					<c:if test="${status == 1 }">		<!-- 供应商 -->
						<c:if test="${assinfo.status == 2 && assrecords.isNew == 1}"> <!-- 如果是在洽谈状态，则可以修改 -->
							<a class="btn btn-info btn_3 btn_right" type="button" href="${contextPath}/biz/contract/assrecord/add?assinfoId=${assinfo.id}&navId=${navId}">修改</a>
						</c:if>
					</c:if>
					<c:if test="${status == 2 }">		<!-- 采购人-->
						<c:if test="${assinfo.status == 1 && assrecords.isNew == 1}"> <!-- 如果是在洽谈状态，则可以修改 -->
							<a class="btn btn-info btn_3 btn_right" type="button" href="${contextPath}/biz/contract/assrecord/add?assinfoId=${assinfo.id}&navId=${navId}">修改</a>
							<a class="btn btn-info btn_3 btn_right" type="button" onclick="return Oosp_Confirm('确定后将不可修改，是否继续？', this.href)" href="${contextPath}/biz/contract/assrecord/updateStatus?id=${assinfo.id}&negId=${assrecords.id}&status=2&navId=${navId}">确认合作</a>
						</c:if>
					</c:if>
					
					<c:if test="${status == 1 }">		<!-- 供应商 -->
						<c:if test="${assinfo.status == 2 && assrecords.isNew == 1}">	<!-- 如果是供应商，则可以确认合作操作 （说明：如果状态等于2，说明是采购人提交的洽谈。 则当前页面为供应商操作） -->
							<a class="btn btn-info btn_3 btn_right" type="button" onclick="return Oosp_Confirm('确定要终止洽谈吗？', this.href)" href="${contextPath}/biz/contract/assrecord/updateStatus?id=${assinfo.id}&negId=${assrecords.id}&status=5&navId=${navId}">终止洽谈</a>
							<a class="btn btn-info btn_3 btn_right" type="button" onclick="return Oosp_Confirm('确定后将不可修改，是否继续？', this.href)" href="${contextPath}/biz/contract/assrecord/updateStatus?id=${assinfo.id}&negId=${assrecords.id}&status=3&navId=${navId}">确认合作</a>
						</c:if>
						<c:if test="${assinfo.status == 6 && assrecords.isNew == 1}">
							<a class="btn btn-info btn_3 btn_right" type="button" onclick="return Oosp_Confirm('确定后将不可修改，是否继续？', this.href)" href="${contextPath}/biz/contract/assrecord/updateStatus?id=${assinfo.id}&negId=${assrecords.id}&status=3&navId=${navId}">确认合作</a>
						</c:if>
					</c:if>
					
					<c:if test="${status == 2 }">		<!-- 采购人 -->
						<c:if test="${assinfo.status == 3 && assrecords.isNew == 1}">	<!-- 如果是采购人。则可以提报操作  （说明：如果状态等于1，说明是供应商提交的洽谈。 则当前页面为采购人操作） -->
							<a class="btn btn-info btn_3 btn_right" type="button" href="${contextPath}/biz/contract/assrecord/add?assinfoId=${assinfo.id}&navId=${navId}">修改</a>
							<shiro:hasPermission name="com.maoye.ossp.biz.contract.intent.IntAdvertociated:add">
								<a class="btn btn-info btn_3 btn_right" type="button" onclick="return Oosp_Confirm('确定要提报吗？', this.href)" href="${contextPath}/biz/intent/intAdvertociated/${assrecords.id}/add?navId=${navId}">提报</a>
							</shiro:hasPermission>
						</c:if>
					</c:if>
				</div>
			</div>
			<div class="modal fade" id="modalAssbaseitems" style="width: 800" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-focus-on="input:first"></div>
			<div class="modal fade" id="modalAssitems" style="width: 800" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-focus-on="input:first"></div>
			<div class="modal fade" id="modalBrand" style="width: 800" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-focus-on="input:first"></div>
			<div class="modal fade" id="supplierModal" style="width: 800" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-focus-on="input:first"></div>
		</div>
		<script type="text/javascript">
			$('.form_date').datetimepicker({
				language : 'zh-CN',
				weekStart : 1,
				todayBtn : 1,
				autoclose : 0,
				todayHighlight : 1,
				startView : 2,
				minView : 2,
				forceParse : 0,
				format : 'yyyy-mm-dd'

			});
		</script>
</body>

</html>